package file_utils

import (
	"fmt"
	"os/exec"
)

func Start(filepath string) {

	cmd := exec.Command("nohup", "java", "-jar", filepath, "&")
	err := cmd.Start()

	if err != nil {
		fmt.Println("Error starting Java service:", err)
		return
	}
	fmt.Println("Java service started: ", filepath)
}
